import request from '@/router/axios';

export const redefinePage = (current, size, params) => {
  return request({
    url: '/api/vingsoft-ywsp/caseErr/caseErrPage',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
};

export const fenFa = (id) => {
  return request({
    url: '/api/vingsoft-ywsp/caseErr/fenFa',
    method: 'post',
    params: {
      id
    }
  })
};
export const shanChu = (id) => {
  return request({
    url: '/api/vingsoft-ywsp/caseErr/shanChu',
    method: 'post',
    params: {
      id
    }
  })
};

export const flowCover = (projectNo, userId) => {
  return request({
    url: '/api/vingsoft-ywsp/caseErr/flowCover',
    method: 'post',
    params: {
      projectNo,
      userId
    }
  })
};

export const manualDistribute = (projectNo, userId, id) => {
  return request({
    url: '/api/vingsoft-ywsp/caseErr/manualDistribute',
    method: 'post',
    params: {
      projectNo,
      userId,
      id
    }
  })
};
